package com.example.tellwin.common;

import android.os.Environment;

/**
 * @author : LinZePeng
 * @date : 2020/11/10
 * @Describe ：
 **/
public class Common {

    //腾讯云
    /**
     * 腾讯云 SDKAppId，需要替换为您自己账号下的 SDKAppId。
     * <p>
     * 进入腾讯云云通信[控制台](https://console.cloud.tencent.com/avc ) 创建应用，即可看到 SDKAppId，
     * 它是腾讯云用于区分客户的唯一标识。
     */
    public static final int SDKAPPID = 1400458092;
    /**
     * 签名过期时间，建议不要设置的过短
     * <p>
     * 时间单位：秒
     * 默认时间：7 x 24 x 60 x 60 = 604800 = 7 天
     */
    public static final int EXPIRETIME = 604800;


    /**
     * 计算签名用的加密密钥，获取步骤如下：
     * <p>
     * step1. 进入腾讯云云通信[控制台](https://console.cloud.tencent.com/avc ) ，如果还没有应用就创建一个，
     * step2. 单击“应用配置”进入基础配置页面，并进一步找到“帐号体系集成”部分。
     * step3. 点击“查看密钥”按钮，就可以看到计算 UserSig 使用的加密的密钥了，请将其拷贝并复制到如下的变量中
     * <p>
     * 注意：该方案仅适用于调试Demo，正式上线前请将 UserSig 计算代码和密钥迁移到您的后台服务器上，以避免加密密钥泄露导致的流量盗用。
     * 文档：https://cloud.tencent.com/document/product/269/32688#Server
     */
    public static final String SECRETKEY = "5d1c1a2bc735ba003136453f3ae7640fe17950b7d4bf48657b09f14cff9dddaf";


    private static final String BasePath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/TianWenJiaoFu/";
    public static final String PhotoPath = BasePath + "Photo";
    public static final String VoicePath = BasePath + "Voice";
    public static final String MediaPath = BasePath + "MEDIA";
    public static final int TakePhotoRequestCode = 10001;
    public static final int PhotoAlbumRequestCode = 10002;
    public static final int VocieRequestCode = 10003;
    public static final int MediaRequestCode = 10004;
    public static final int MineDetailRequestCode = 10005;
    public static final int MineDetailResultCode = 10006;
    public static final int ApplyAnswer = 10007;
    public static final int UPDATE_ORDER_LIST = 10008;
    public static final int ORDER_LIST_REQUEST_CODE = 10009;
    public static final int CALL_REMINDER = 10010;

    public static final String USER_ID = "userId";

    public static final String TYPE = "type";
    public static final String ORDER = "order";
    public static final String ORDER_ID = "order_id";
    public static final String QUESTION = "question";
    public static final String ACTIVITY = "activity";
    public static final String ACTIVITY_ID = "activity_id";
    public static final String IS_LOGIN = "is_login";
    public static final String TEACHER_ID ="teacher_id" ;
    public static final String TEACHER_NAME ="teacher_name" ;
    public static final String SHARE_TYPE ="share_type" ;
    public static final String SHARE_ID ="share_id" ;
    public static final String PHOTO_PATH ="photo_path" ;
    public static final String POSITION = "position";
    public static final String MEDIA_PATH = "media_path";

    public static final String IDENTITY = "identity";
    public static final String STUDENT = "student";
    public static final String TEACHER = "teacher";

    public static final String USERINFO = "userInfo";

    public static final String NORMAL = "normal";
    public static final String ANSWER = "answer";

    public static final String AUDITS = "Audits";
    public static final String AUDITS_SUCCESS = "1";
    public static final String AUDITS_WAIT = "0";
    public static final String AUDITS_FAIL = "2";

    /*通话*/
    public static final int UserEnter = 300001;
    public static final int UserLeave = 300002;
    public static final int OrderId = 300003;
    public static final int onInvited = 300004;
    public static final int onCallingCancel = 300005;
    public static final int AnswerType = 300006;
    public static final int onLineBusy = 300007;
    public static final int onCallingTimeout = 300009;
    public static final int onNoResp = 300010;
    public static final int onCallEnd = 300011;

    public static final int onReject = 300007;
    public static final String Call_Type = "Call_Type";
    public static final int onUserVideoAvailable = 300008;

    public static final String ClassId  ="ClassId";


    public static final int Join_Room_Event = 1001;
    public static final int Order_Id_Event = 1002;
    public static final int Answer_Success_Event = 1003;

    public static final String WeChatPayId = "wxa495a7fa18d87be8";
}
